package com.yimoo.elearning.vo;

/**
 * GroupsincludeId entity. @author MyEclipse Persistence Tools
 */

public class GroupsincludeId implements java.io.Serializable {

	// Fields

	private Groupinfo groupinfo;
	private Videos videos;

	// Constructors

	/** default constructor */
	public GroupsincludeId() {
	}

	/** full constructor */
	public GroupsincludeId(Groupinfo groupinfo, Videos videos) {
		this.groupinfo = groupinfo;
		this.videos = videos;
	}

	// Property accessors

	public Groupinfo getGroupinfo() {
		return this.groupinfo;
	}

	public void setGroupinfo(Groupinfo groupinfo) {
		this.groupinfo = groupinfo;
	}

	public Videos getVideos() {
		return this.videos;
	}

	public void setVideos(Videos videos) {
		this.videos = videos;
	}

	public boolean equals(Object other) {
		if ((this == other))
			return true;
		if ((other == null))
			return false;
		if (!(other instanceof GroupsincludeId))
			return false;
		GroupsincludeId castOther = (GroupsincludeId) other;

		return ((this.getGroupinfo() == castOther.getGroupinfo()) || (this.getGroupinfo() != null
				&& castOther.getGroupinfo() != null && this.getGroupinfo().equals(castOther.getGroupinfo())))
				&& ((this.getVideos() == castOther.getVideos()) || (this.getVideos() != null
						&& castOther.getVideos() != null && this.getVideos().equals(castOther.getVideos())));
	}

	public int hashCode() {
		int result = 17;

		result = 37 * result + (getGroupinfo() == null ? 0 : this.getGroupinfo().hashCode());
		result = 37 * result + (getVideos() == null ? 0 : this.getVideos().hashCode());
		return result;
	}

}